package com.yoomiito.app.act;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.yoomiito.app.model.home.FreeGoodsInfo;
import com.yoomiito.app.model.home.PersonalGoodsInfo;

public class FreeGoodsMultiple implements MultiItemEntity {
    public static final int FREE_GOODS_FLAG = 1;
    public static final int PERSONAL_GOODS_FLAG = 2;
    public static final int PERSONAL_GOODS_TITLE_FLAG = 3;
    private int itemType;
    private PersonalGoodsInfo mPersonalGoodsInfo;
    private FreeGoodsInfo mFreeGoodsInfo;

    public FreeGoodsMultiple(int itemType) {
        this.itemType = itemType;
    }

    public FreeGoodsMultiple(int itemType, PersonalGoodsInfo personalGoodsInfo) {
        this.itemType = itemType;
        mPersonalGoodsInfo = personalGoodsInfo;
    }

    public FreeGoodsMultiple(int itemType, FreeGoodsInfo freeGoodsInfo) {
        this.itemType = itemType;
        mFreeGoodsInfo = freeGoodsInfo;
    }

    public PersonalGoodsInfo getPersonalGoodsInfo() {
        return mPersonalGoodsInfo;
    }

    public void setPersonalGoodsInfo(PersonalGoodsInfo personalGoodsInfo) {
        mPersonalGoodsInfo = personalGoodsInfo;
    }

    public FreeGoodsInfo getFreeGoodsInfo() {
        return mFreeGoodsInfo;
    }

    public void setFreeGoodsInfo(FreeGoodsInfo freeGoodsInfo) {
        mFreeGoodsInfo = freeGoodsInfo;
    }

    @Override
    public int getItemType() {
        return itemType;
    }
}
